package com.xcdh.trading.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xcdh.trading.entity.StockInfo;
import com.xcdh.trading.mapper.StockInfoMapper;
import com.xcdh.trading.service.StockInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StockInfoServiceImpl extends ServiceImpl<StockInfoMapper, StockInfo> implements StockInfoService {
    @Autowired
    private StockInfoMapper stockInfoMapper ;
    @Override
    public String selectMaxTradeDate() {
        return stockInfoMapper.selectMaxTradeDate();
    }

    @Override
    public List<String> selectMaxTradeDateTop3() {
        return stockInfoMapper.selectMaxTradeDateTop3();
    }

    @Override
    public IPage<StockInfo> listByPage(IPage<StockInfo> page, QueryWrapper<StockInfo> queryWrapper) {
        return stockInfoMapper.listByPage(page , queryWrapper);
    }
}
